﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="SearchEmp.aspx.cs" Inherits="EmployeeInfo_SearchEmp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table align="center" border="0" style="border-right: #99ccff 1px solid; border-top: #99ccff 1px solid;
            border-left: #99ccff 1px solid; width: 463px; border-bottom: #99ccff 1px solid;
            height: 309px; vertical-align:middle">
          <!--DWLayoutTable-->
            <tr>
                <td width="459" height="27" rowspan="1" valign="bottom" style="border-right: #99ccff 1px solid; border-top: #99ccff 1px solid;
                    border-left: #99ccff 1px solid; width: 457px; border-bottom: #99ccff 1px solid;
                    height: 4px">
                请输入查询的姓名：</td>
            </tr>
            <tr>
              <td height="25" valign="top" style="border-right: #99ccff 1px solid; border-top: #99ccff 1px solid; border-left: #99ccff 1px solid;
                    width: 457px; border-bottom: #99ccff 1px solid; height: 7px">
                  <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></td>
            </tr>
            <tr>
              <td height="23" valign="top" style="border-right: #99ccff 1px solid; border-top: #99ccff 1px solid; border-left: #99ccff 1px solid;
                    width: 457px; border-bottom: #99ccff 1px solid; height: 11px">
                <asp:Label ID="lblNoResult" runat="server" Height="35px" Visible="False" Width="431px"></asp:Label></td>
            </tr>
            <tr>
              <td height="226" valign="top"><span style="border-right: #99ccff 1px solid; border-top: #99ccff 1px solid; border-left: #99ccff 1px solid;
                    width: 457px; border-bottom: #99ccff 1px solid; height: 11px">
                <asp:GridView ID="GridView1" runat="server" Width="443px" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AllowSorting="True"  PageSize="8" OnPageIndexChanging="GridView1_PageIndexChanging" OnPageIndexChanged="GridView1_PageIndexChanged" OnRowCommand="GridView1_RowCommand"> 
                    <FooterStyle BackColor="#CCCC99" />
                    <Columns>
                        <asp:BoundField DataField="EmployeeID" HeaderText="员工编号" Visible="False" />
                        <asp:HyperLinkField DataNavigateUrlFields="EmployeeID" DataNavigateUrlFormatString="DefaultInfo.aspx?id={0}"
                            DataTextField="LoginName" HeaderText="登陆名" />
                        <asp:BoundField DataField="Name" HeaderText="姓名" />
                        <asp:HyperLinkField DataNavigateUrlFields="DeptName" DataNavigateUrlFormatString="SearchEmp.aspx?dept={0}"
                            DataTextField="DeptName" HeaderText="部门" />
                        <asp:ButtonField DataTextField="Email" HeaderText="电子邮件" CommandName="Email" />
                    </Columns>
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
              </span></td>
            </tr>
        </table>
    
    </div>
</asp:Content>